﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MShop.Core.Domain;

namespace MShop.Core.Service.Membership
{
    public interface IRoleService
    {
        /// <summary>
        /// 更新role到membership表
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="roleName"></param>
        void UpdateUserRole(string userName, string roleName);

        IQueryable<aspnet_Roles> FindPowerRoles();

        Guid[] PowersRoleId { get; }

        IQueryable<aspnet_Roles> FindRoles();

        bool IsPowerRole(string userName);
    }
}